feat: lighthouse report on frontend PRs#1203
Conversation
|
Preview Firebase Hosting URL: https://mobility-feeds-dev--pr-1203-xjaqi00l.web.app |
There was a problem hiding this comment.
| Device | URL |
|---|---|
| desktop | https://mobilitydatabase.org |
| Device | URL |
|---|---|
| mobile | https://mobilitydatabase.org |
| Device | URL |
|---|---|
| desktop | https://mobilitydatabase.org/feeds |
| Device | URL |
|---|---|
| mobile | https://mobilitydatabase.org/feeds |
Not what you expected? Are your scores flaky? GitHub runners could be the cause.
Try running on Foo instead
There was a problem hiding this comment.
| Device | URL |
|---|---|
| desktop | https://mobility-feeds-dev--pr-1203-xjaqi00l.web.app |
| Device | URL |
|---|---|
| mobile | https://mobility-feeds-dev--pr-1203-xjaqi00l.web.app |
| Device | URL |
|---|---|
| desktop | https://mobility-feeds-dev--pr-1203-xjaqi00l.web.app/feeds |
| Device | URL |
|---|---|
| mobile | https://mobility-feeds-dev--pr-1203-xjaqi00l.web.app/feeds |
Not what you expected? Are your scores flaky? GitHub runners could be the cause.
Try running on Foo instead
There was a problem hiding this comment.
| Device | URL |
|---|---|
| desktop | http://localhost:55300 |
| Device | URL |
|---|---|
| mobile | http://localhost:55300 |
| Device | URL |
|---|---|
| desktop | http://localhost:55300/feeds |
| Device | URL |
|---|---|
| mobile | http://localhost:55300/feeds |
Not what you expected? Are your scores flaky? GitHub runners could be the cause.
Try running on Foo instead
There was a problem hiding this comment.
| Device | URL |
|---|---|
| desktop | http://localhost:55300 |
| Device | URL |
|---|---|
| desktop | http://localhost:55300/feeds |
| Device | URL |
|---|---|
| desktop | http://localhost:55300/feeds/gtfs/mdb-2126 |
| Device | URL |
|---|---|
| desktop | http://localhost:55300/feeds/gtfs_rt/mdb-2585 |
| Device | URL |
|---|---|
| desktop | http://localhost:55300/gbfs/gbfs-flamingo_porirua |
Not what you expected? Are your scores flaky? GitHub runners could be the cause.
Try running on Foo instead
🔍 Lighthouse Report Results\n |
|
*Lighthouse ran on https://mobility-feeds-dev--pr-1203-nlp6ow3m.web.app/ * (Desktop)
*Lighthouse ran on https://mobility-feeds-dev--pr-1203-nlp6ow3m.web.app/feeds * (Desktop)
*Lighthouse ran on https://mobility-feeds-dev--pr-1203-nlp6ow3m.web.app/feeds/gtfs/mdb-2126 * (Desktop)
*Lighthouse ran on https://mobility-feeds-dev--pr-1203-nlp6ow3m.web.app/feeds/gtfs_rt/mdb-2585 * (Desktop)
*Lighthouse ran on https://mobility-feeds-dev--pr-1203-nlp6ow3m.web.app/gbfs/gbfs-flamingo_porirua * (Desktop)
|
6be4156 to
c6034bc
Compare
|
Preview Firebase Hosting URL: https://mobility-feeds-dev--pr-1203-nlp6ow3m.web.app |
8959c29 to
f0b1493
Compare
|
|
||
|
|
||
| - name: Format lighthouse score | ||
| id: format_lighthouse_score |
There was a problem hiding this comment.
do we need: if: ${{ inputs.PREVIEW_DEPLOYMENT }} here?
| core.setOutput("comment", finalComment); | ||
|
|
||
| - name: Add lighthouse comment to PR | ||
| id: comment_to_pr |
There was a problem hiding this comment.
do we need: if: ${{ inputs.PREVIEW_DEPLOYMENT }} here?
Summary:
Adding lighthouse performance check in frontend PRs
Expected behavior:
On frontend PRs, there should be a lighthouse check on key pages. Also provides the lighthouse report for each key page:
ex: https://storage.googleapis.com/lighthouse-infrastructure.appspot.com/reports/1748974253255-25918.report.html
This storage url is a temporary url
To Note
Improvements to future versions
Please make sure these boxes are checked before submitting your pull request - thanks!
./scripts/api-tests.shto make sure you didn't break anything